package main.bots;

import java.awt.Point;

import main.RSApplet;

public class MouseHandler{

	public static void moveMouse(Point toMoveToPoint) {
		moveMouse(toMoveToPoint.x, toMoveToPoint.y);
	}
	
	public static void moveMouse(int x, int y) {
		Methods.getClientToUse().mouseX = x;
		Methods.getClientToUse().mouseY = y;
	}
	
	public static void clickMouse() {
		Methods.getClientToUse().clickX = Methods.getClientToUse().mouseX;
		Methods.getClientToUse().clickY = Methods.getClientToUse().mouseY;
		Methods.getClientToUse().clickMode1 = 1;
		Methods.getClientToUse().clickMode2 = 1;
		
	}
	public static void clickMouse(int x, int y) {
		clickMouse(new Point(x, y));
	}
	public static void clickMouse(Point p) {
		moveMouse(p);
		clickMouse();
	}

}
